package com.platform.service.impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

import com.platform.dao.CommonArticleDao;
import com.platform.entity.CommonArticleEntity;
import com.platform.service.CommonArticleService;

/**
 * Service实现类
 *
 * @author lipengjun
 * @email 939961241@qq.com
 * @date 2018-08-31 10:01:53
 */
@Service("commonArticleService")
public class CommonArticleServiceImpl implements CommonArticleService {
    @Autowired
    private CommonArticleDao commonArticleDao;

    @Override
    public CommonArticleEntity queryObject(Integer id) {
        return commonArticleDao.queryObject(id);
    }

    @Override
    public List<CommonArticleEntity> queryList(Map<String, Object> map) {
        return commonArticleDao.queryList(map);
    }

    @Override
    public int queryTotal(Map<String, Object> map) {
        return commonArticleDao.queryTotal(map);
    }

    @Override
    public int save(CommonArticleEntity commonArticle) {
        return commonArticleDao.save(commonArticle);
    }

    @Override
    public int update(CommonArticleEntity commonArticle) {
        return commonArticleDao.update(commonArticle);
    }

    @Override
    public int delete(Integer id) {
        return commonArticleDao.delete(id);
    }

    @Override
    public int deleteBatch(Integer[]ids) {
        return commonArticleDao.deleteBatch(ids);
    }
}
